import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/Home.vue'
import Layout from '../views/Layout/index.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: Layout,
    children: [
      {
        path: '/',
        component: Home
      },
      {
        path: 'chooseIcon',
        component: () => import('../views/ChooseIcon/index.vue')
      },
      {
        path: 'chooseArea',
        component: () => import('../views/ChooseArea/index.vue')
      },
      {
        path: 'trend',
        component: () => import('../views/Trend/index.vue')
      },
      {
        path: 'notify',
        component: () => import('../views/Notify/index.vue')
      },
      {
        path: 'menu',
        component: () => import('../views/Menu/index.vue')
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})


export default router